<form id="pagerForm" method="post" action="{:U($module_name.'/'.$action_name."?model=".$model)}">
    <input type="hidden" name="pageNum" value="{$pageNum}" />
	<input type="hidden" name="numPerPage" value="{$numPerPage}" />
	<input type="hidden" name="orderField" value="{$orderField}" />
	<input type="hidden" name="orderDirection" value="{$orderDirection}" />
</form>
<div class="pageHeader">
    <form rel="pagerForm" onsubmit="return navTabSearch(this);" action="{:U($module_name.'/'.$action_name)}" method="post">
        <div class="searchBar">
            <ul class="searchContent">
                <li style="width:200px;">
				<label style="width: 50px;">关键字：</label>
				<input type="text" name="keywords" value="{$keywords}" style="width: 120px;"/>
				</li>
				<li style="width:60px;">
			<select name="sfield" class="combox">
				<option value="all" {if $wherefields=='all'}selected="selected"{/if}>全部</option>
				<option value="name" {if $wherefields=='name'}selected="selected"{/if}>名称</option>
				<option value="id" {if $wherefields=='id'}selected="selected"{/if}>ID</option>
				<option value="code" {if $wherefields=='code'}selected="selected"{/if}>编号</option>
			</select>
			<input type="hidden" name="sfield_name" value="id,name,code" />
			</li>
				<li style="width:100px;">
                    <select name="mname">
                      
                        <option value="sj" {if $mname  == 'sj'}  selected=selected {/if}>手机</option>
                        <option value="pb" {if $mname  == 'pb'}  selected=selected {/if}>平板</option>
                        <option value="sjpj" {if $mname  == 'sjpj'}  selected=selected {/if}>配件</option>
                        <option value="sjsp" {if $mname  == 'sjsp'}  selected=selected {/if}>饰品</option>
                        <option value="lh" {if $mname  == 'lh'}  selected=selected {/if}>靓号</option>
                        <option value="hmpf" {if $mname  == 'hmpf'}  selected=selected {/if}>靓号批发</option>
                    </select>
                </li>
				  <li style="width:120px;">
                    <select name="status">
                        <option value="">请选择状态</option>
                        <option value="1" {if $pstatus  == '1'}  selected=selected {/if}>  上架</option>
                        <option value="2" {if $pstatus  == 2}  selected=selected {/if}> 下架</option>
                    </select>
                </li>
                <li style="width:120px;">
                    <select name="suppliers">
                        <option value="">请选择供应商</option>
                        <volist name="suppliers" id="s">
                        <option value="{$s['id']}" {if $condition['suppliers']  == $s['id']}  selected=selected {/if}>{$s['name']} </option>
                        </volist>
                    </select>
                </li>
                <li style="width:120px;">
                    <select name="brand">
                        <option value="">请选择品牌</option>
                        <volist name="brand" id="b">
                        <option value="{$b['id']}" {if $condition['brand']  == $b['id']}  selected=selected {/if}>{$b['name']} </option>
                        </volist>
                    </select>
                </li>
                <li style="width:80px;">
                    <div class="buttonActive">
                        <div class="buttonContent">
                            <button type="submit">
                                搜索
                            </button>
                        </div>
                    </div>
                </li>
            </ul>
        </div>
    </form>
</div>
<div class="pageContent">
    <div class="panelBar">
        <ul class="toolBar">
            <li><a class="edit" href="{:U('Price/edit')}" target="dialog" width="500" height="200"><span>Excel价格导入</span></a></li>
            <li><a class="edit selectedDo" href="{:U('Price/out')}" warn="请选择至少选择一个产品" target="dialog" data="ids[]" width="600" height="200" rel="dsadsasd"><span>Excel价格导出</span></a></li>
        	<li><a class="edit" href="{:U('Price/repertory')}" target="dialog" width="500" height="200"><span>Excel更新库存</span></a></li>
        	<li><a class="edit" href="{:U('Price/update_ygstatus')}" target="ajaxTodo" title="确定更新云购上下架状态?"><span>一键更新云购上下架状态</span></a></li>
        </ul>
    </div>
    <div id="w_list_print">
        <table class="list" width="100%" targetType="navTab" asc="asc" desc="desc" layoutH="94">
            <thead>
            <tr>
                <th width="22"><input type="checkbox" group="ids[]" class="checkboxCtrl"></th><th width="40" orderField="id" {if $orderField=='id'}class="{$orderDirection}"{/if}> ID</th>
                <th>名称</th>
                <th>模型</th>
                <th>起批数</th>
                <th>云购商户</th>
                <th>全国连锁价</th>
                <th>省价</th>
                <th>市价</th>
				<th>修改时间</th>
                <th>状态</th>
                
            </tr>
            </thead>
            <tbody>
            <volist name="list" id="vo">
            <tr target="sid_dv" rel="{$vo['id']}">
                <td><input name="ids[]" value="{$vo['id']}" type="checkbox"></td><td align="center">{$vo['id']}</td>
                <td> <a title="查看{$desc[$vo['id']]['name']}" target="dialog" width="880" height="650" rel="Content_show_{$vo['id']}" href="{:U('Content/show',array('id'=>$vo['id']))}" >{$vo['name']}</a>
								<br/>
				<volist name='vo.attr' id='a'>{if $a['value']}[{$a.value}]&nbsp;&nbsp;{/if}</volist>
				</td>
                <td>{$vo['mname']}</td>
                <td>{$price[$vo['id']]['minsale']}</td>
                <td>
                    <php>
                    echo $price[$vo['id']]['jiayi'] * 0.01
                    </php>
                </td>
                <td>
                    <php>
                    echo $price[$vo['id']]['jiaer'] * 0.01
                    </php>
                </td>
                <td>
                    <php>
                    echo $price[$vo['id']]['jiasan'] * 0.01
                    </php>
                </td>
                <td>
                    <php>
                    echo $price[$vo['id']]['jiasi'] * 0.01
                    </php>
                </td>
				<td>{$vo['write_date']|date="Y-m-d H:i:s",###}</td>
                <td>   {if $vo['status']==0}
					<a title="下架"  rel="jbsxBox" class="btnxj">上下架</a>
					{else}
					<a title="上架"  rel="jbsxBox"  class="btnsj">上下架</a>
					{/if}</td>
                
            </tr>
            </volist>
            </tbody>
        </table>
    </div>
<include file="Index:pages" />
</div>